import request from './request'

export const add = (params) => {
  return request.post('/zxch/task/app',params)
}

export const edit = (params) => {
  return request.put('/zxch/task/app',params)
}

export const get = (params) => {
  return request.get('/zxch/task/app',params)
}

export const del = (ids) => {
  return request.delete(`/zxch/task/app/${ids}`)
}

export const completeTask = (id) => {
  return request.get(`/zxch/task/app/completeTask/${id}`)
}

export const revokeTask = (id) => {
  return request.get(`/zxch/task/app/revokeTask/${id}`)
}

export const list = (params) => {
  return request.get('/zxch/task/app/list',params)
}

export const count = () => {
  return request.get('/zxch/task/app/count')
}

export const taskCount = () => {
  return request.get('/zxch/task/app/taskCount')
}

export const msgContentList = (params) => {
  return request.get('/zxch/taskLog/app/queryByTaskId',params)
}